﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Boa.HD.Reportes.Core
{
    public class Parametros
    {
        public const string Renderizador = "Renderizador";

        public const string HistoriaProblemaId = "HistoriaProblemaId";

        public const string Filtro = "Filtro";
    }


    public class Renderizadores
    {
        public const string RptHistoriaProblema = "Boa.HD.Reportes.RptHistoriaProblema, Boa.HD.Reportes";
        public const string RptRolUsuario = "Boa.HD.Reportes.RptRolUsuario, Boa.HD.Reportes";
        public const string RptPromedioTecnico = "Boa.HD.Reportes.RptPromedioTecnico, Boa.HD.Reportes";
        

    }

    public class DirectorReporte
    {
        public static string ConstruirURL(Dictionary<string, string> diccionario)
        {
            string param = Didsoft.Mvc.Security.DicParams.BuildParam(diccionario);
            string encoded = System.Web.HttpUtility.UrlEncode(param);
            return string.Format("{0}/Reportes/VerReporte.aspx?param={1}", ConfigurationManager.AppSettings["ServerAddress"], encoded);
        }
    }
}
